#! /bin/bash
dataPath=/FC_BAYERN/data/ipdb
libs=.:
libsArray=`ls /FC_BAYERN/data/ipdb/lib`
array=($libsArray)
length=${#array[*]}
echo "length:$length"
count=1
for i in $libsArray
do
	echo "lib:$i"
	libs+=$dataPath/lib/$i
	if [ $length -ne $count ]; then
		libs+=:
	fi
	count=$((count+1));
done

echo "===================libs:$libs"

cd $dataPath
java -cp $libs com.bayern.main.GetIp &
exit $?
